package com.ctshk.rpc.order.air.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ctshk.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 * 机票收款明细
 * </p>
 *
 * @author lihang
 * @since 2021-03-15
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("t_air_order_collection")
@ApiModel(value="AirOrderCollection对象", description="机票收款明细")
public class AirOrderCollection extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "收款单号")
    private String collectionNumber;

    @ApiModelProperty(value = "所属订单")
    private Long orderId;

    @ApiModelProperty(value = "是否使用pos机")
    private Integer isPos;

    @ApiModelProperty(value = "收款金额")
    private BigDecimal collectionAmount;

    @ApiModelProperty(value = "收款币种ID")
    private Long currencyId;

    @ApiModelProperty(value = "收款币种")
    private String currency;

    @ApiModelProperty(value = "是否银联优惠")
    private Integer isUnionpayDiscount;

    @ApiModelProperty(value = "银联优惠id")
    private Long unionpayDiscountId;

    @ApiModelProperty(value = "收款方式ID")
    private Long collectionWayId;

    @ApiModelProperty(value = "收款方式")
    private String collectionWay;

    @ApiModelProperty(value = "付款方")
    private String payer;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "收款凭证JSON")
    private String collectionCertificateJson;

    @ApiModelProperty(value = "销售ID")
    private Long salerId;

    @ApiModelProperty(value = "销售姓名")
    private String salerName;
    /**
     * 对应 OrderConfirmationStatus
     * 0-未认款
     * 1-已认款
     * 2-已驳回
     */
    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "驳回信息")
    private String rejectInfo;

    @ApiModelProperty(value = "创建人")
    private Long createId;

    @ApiModelProperty(value = "修改人")
    private Long modifiedId;

    @ApiModelProperty(value = "删除标识")
    private Integer isDeleted;

    @ApiModelProperty(value = "汇率id")
    private Long exchangeRateId;

    @ApiModelProperty(value = "汇率值")
    private BigDecimal exchangeRate;

    @ApiModelProperty(value = "汇率转换之后的金额")
    private BigDecimal exchangeRateAfterMoney;

}
